package tinglema.server.constants;

/**
 * @author delucia
 * @version 1.0.0
 * @date 2025-03-13
 * @apiNote 项目经常用到的常量
 */
public interface Constants {
    /* 歌曲图片，歌手图片，歌曲文件，歌单图片等文件的存放路径 */
    String ASSETS_PATH = System.getProperty("user.dir");
    String SEP = System.getProperty("file.separator");

    String AVATOR_IMAGES_PATH =  ASSETS_PATH + SEP + "img" + SEP + "avatorImages" + SEP;
    String AVATOR_IMAGES_FILE_PATH = "file:" + AVATOR_IMAGES_PATH;

    String SONGLIST_PIC_PATH =  ASSETS_PATH + SEP + "img" + SEP + "songListPic" + SEP;
    String SONGLIST_PIC_FILE_PATH = "file:" + SONGLIST_PIC_PATH;

    String SONG_PIC_PATH =  ASSETS_PATH + SEP + "img" + SEP + "songPic" + SEP;
    String SONG_PIC_FILE_PATH = "file:" + SONG_PIC_PATH;

    String SONG_PATH =  ASSETS_PATH + SEP + "song" + SEP;
    String SONG_FILE_PATH = "file:" + SONG_PATH;

    String SINGER_PIC_PATH =  ASSETS_PATH + SEP + "img" + SEP + "singerPic" + SEP;
    String SINGER_PIC_FILE_PATH = "file:" + SINGER_PIC_PATH;

    String BANNER_PIC_PATH =  ASSETS_PATH + SEP + "img" + SEP + "swiper" + SEP;
    String BANNER_PIC_FILE_PATH = "file:" + BANNER_PIC_PATH;
    /* 盐值加密 */
    String SALT = "xsdfsdfujiwjerwek1231yz";

    enum CommentType {
        SONG(0),
        SONG_LIST(1);

        private final int value;

        CommentType(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }
}
